package com.dxy.yesas2020goals.study.partone.disignpattern.explainpattern.calculate;

public class AddInterpreter extends Interpreter {

    public AddInterpreter(IArithmeticInterpreter left, IArithmeticInterpreter right, IArithmeticInterpreter left_kuohhhao, IArithmeticInterpreter right_kuohao){
        super(left,right,left_kuohhhao, right_kuohao);
    }


    public int interpret() {
        return this.left.interpret() + this.right.interpret();
    }
}